package com.ws.mbp.springsecuritydemo.controller;

import com.ws.mbp.springsecuritydemo.utils.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/teacher")
@Tag(name = "老师接口", description = "老师接口")
public class SecurityTeacherAction {

    @GetMapping("/add")
    public R add() {
        System.out.println("增加老师方法。。。。。。。。。。");
        return new R(200, "增加老师成功", null);
    }
    @GetMapping("/delete")
    public R delete() {
        System.out.println("删除老师方法。。。。。。。。。。");
        return new R(200, "删除老师成功", null);
    }
    @GetMapping("/update")
    public R update() {
        System.out.println("修改老师方法。。。。。。。。。。");
        return new R(200, "修改老师成功", null);
    }
    @GetMapping("/list")
    public R list() {
        System.out.println("查询老师方法。。。。。。。。。。");
        return new R(200, "查询老师成功", null);
    }


}